################################################################# 
## Title: ChatBox Block for Smartor's ezPortal
## Author: Smartor <smartor_xp@hotmail.com> - http://smartor.is-root.com
## Description: This file explains you how to create ChatBox block on ezPortal
##		Required ChatBox MOD
##
## Traduccion: JANU1535 - www.JanuWeb.Com
##
## Files To Edit: 3
##	portal.php
##	templates/subSilver/portal_body.tpl
##	language/lang_english/lang_main.php
##	language/lang_spanish/lang_main.php
##
## Included Files: N/A
##
################################################################# 

#
#-----[ OPEN ]---------------------------------------------
#
portal.php

#
#-----[ FIND ]----------------------------------------
#
include($phpbb_root_path . 'fetchposts.'.$phpEx);

#
#-----[ AFTER ADD ]-----------------------------------
#
// ChatBox Mod
include($phpbb_root_path . 'chatbox_front.php');


#
#-----[ FIND ]----------------------------------------
#
	'L_VOTE_BUTTON' => $lang['Vote'],

#
#-----[ AFTER ADD ]-----------------------------------
#
	// ChatBox
	'L_WHO_IS_CHATTING' => $lang['Who_is_Chatting'],
	'TOTAL_CHATTERS_ONLINE' => sprintf($lang['How_Many_Chatters'], $howmanychat),
	'CHATTERS_LIST' => sprintf($lang['Who_Are_Chatting' ],$chatters),
	'L_LOGIN_TO_JOIN_CHAT' => $lang['Login_to_join_chat'],
	'L_CLICK_TO_JOIN_CHAT' => $lang['Click_to_join_chat'],
	'S_JOIN_CHAT' => append_sid("chatbox_mod/chatbox.$phpEx"),
	'CHATBOX_NAME' => $userdata['user_id'] . '_ChatBox',

#
#-----[ OPEN ]---------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]----------------------------------------
#
$lang['No_poll'] = 'No poll at the moment';

#
#-----[ AFTER ADD ]-----------------------------------
#
$lang['Who_is_Chatting'] = 'Who is Chatting'; // ChatBox

#
#-----[ OPEN ]---------------------------------------------
#
language/lang_spanish/lang_main.php

#
#-----[ FIND ]----------------------------------------
#
$lang['No_poll'] = 'No hay encuestas en este momento';

#
#-----[ AFTER ADD ]-----------------------------------
#
$lang['Who_is_Chatting'] = 'Quin est chateando'; // ChatBox

#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/portal_body.tpl

#
#-----[ FIND ]----------------------------------------
#
		  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_WHO_IS_ONLINE}</b></span></td>
		   </tr>
		   <tr>
			<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}<br /><br />{LOGGED_IN_USER_LIST}<br /><br /><center>[ <a href="{U_VIEWONLINE}">{L_VIEW_COMPLETE_LIST}</a> ]</center><br />{RECORD_USERS}<br />&nbsp;</span></td>
		   </tr>
		  </table>
		  
		  <br />

#
#-----[ AFTER ADD ]-----------------------------------
#
		  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_WHO_IS_CHATTING}</b></span></td>
		   </tr>
		   <tr>
			<td class="row1" align="left"><span class="gensmall">
				{TOTAL_CHATTERS_ONLINE}<br />{CHATTERS_LIST}<br />
				<!-- BEGIN switch_user_logged_out -->
				<center>[ {L_LOGIN_TO_JOIN_CHAT} ]</center>
				<!-- END switch_user_logged_out -->
				<!-- BEGIN switch_user_logged_in -->
				<center>[ <a href="javascript:void(0);" onClick="window.open('{S_JOIN_CHAT}','{CHATBOX_NAME}','scrollbars=no,width=540,height=450')">{L_CLICK_TO_JOIN_CHAT}</a> ]</center>
				<!-- END switch_user_logged_in -->
				<br />&nbsp;
			</span></td>
		   </tr>
		  </table>
		  
		  <br />


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
#
# EoF